package com.tjetc.dao;

import com.tjetc.pojo.entity.Review;

import java.util.List;

/**
 * @Author: itda
 * @Date: 2024/5/11 19:45
 * @Description: CommentDao
 */
public interface CommentDao {
    /**
     * 根据酒店id获取评论信息
     * @param hotelId
     * @return
     */
    List<Review> getByHotelId(Long hotelId) throws Exception;

    /**
     * 新增评论
     * @param review
     */
    void insert(Review review) throws Exception;

    /**
     * 根据用户id,酒店id查询评论信息
     * @param userId
     * @param hotelId
     * @return
     */
    Review getByUHId(Long userId, Long hotelId) throws Exception;
}
